﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="sysapp_websitesetting_index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link rel="stylesheet" href="../../img/ui/globle.css">
<link rel="stylesheet" href="../../js/jquery.HooRay/jquery.HooRay.css">
<link rel="stylesheet" href="../../js/HoorayUI/hoorayui.css">
<link rel="stylesheet" href="../../img/ui/sys.css">
    <title>网站设置</title>
</head>
<body>
    <form method="post" name="form" id="form" action="../../Ajax/Index.ashx">
	<input type="hidden" name="ac" value="ajaxEdit">
    <input type="hidden" name="id" value="<%=modelset.ID %>">
	<div class="title">网站设置</div>
	<div class="input-label">
		<div class="label-text">网站标题：</div>
		<div class="label-box">
			<input type="text" class="text" name="value_1" id="value_1" value="<%=modelset.title %>">
		</div>
	</div>
	<div class="input-label">
		<div class="label-text">SEO关键词：</div>
		<div class="label-box">
			<input type="text" class="text" name="value_2" id="value_2" value="<%=modelset.description %>">
			<span class="txt gray">（推荐写法：“关键词1,关键词2,关键词3”，必须为英文逗号，不超过100字符）</span>
		</div>
	</div>
	<div class="input-label">
		<div class="label-text">SEO描述标签：</div>
		<div class="label-box">
			<input type="text" class="text" name="value_3" id="value_3" value="<%=modelset.keywords %>">
			<span class="txt gray">（推荐写法：尽量把关键词重复2-3次）</span>
		</div>
	</div>
	<div class="title">窗口设置</div>
	<div class="input-label">
		<div class="label-text">窗口样式：</div>
		<div class="label-box">
			<div class="value_4" style="display:inline-block">
				<select name="value_4" id="value_4" runat="server">
					<option value="default">默认</option>
					<option value="chrome">仿chrome窗口</option>
					<option value="qq">仿qq窗口</option>
					<option value="mac">仿mac窗口</option>
					<option value="ext">仿ext窗口</option>
				</select>
			</div>
		</div>
	</div>
	<div class="input-label" style="background:none;padding-left:0;text-align:center;" >
		<a class="button btn-blue set" href="javascript:;" style="margin-left:10px;cursor:pointer;">应用</a>    
	</div>
	</form>
	<div class="title">检查更新</div>
	<div class="input-label">
		<div class="label-text">当前版本：</div>
		<div class="label-box">
			<span class="txt version">1.0</span>
			<%--<a class="button btn-gray check-version" href="javascript:;" style="margin-left:10px">检查更新</a>--%>
		</div>
	</div>
	<div class="title">关于HoorayOS开源桌面应用框架</div>
	<div class="input-label">
		<div class="label-text">作者：</div>
		<div class="label-box">
			_one
		</div>
	</div>
	<div class="input-label">
		<div class="label-text">联系：</div>
		<div class="label-box">
			<span class="txt">
				<a href="http://t.qq.com/hooray19900905" target="_blank">10744520(QQ)</a>
				<a href="http://weibo.com/318577790" target="_blank">fear no one</a>
			</span>
		</div>
	</div>
	<%--<div class="input-label">
		<div class="label-text">项目地址：</div>
		<div class="label-box">
			<span class="txt"><a href="http://code.google.com/p/hoorayos" target="_blank">http://code.google.com/p/hoorayos</a></span>
		</div>
	</div>--%>
	<div class="input-label">
		<div class="label-text">备注：</div>
		<div class="label-box">
			<span class="txt"></span>
		</div>
	</div>
	<div class="input-label">
		<div class="label-text">版权说明：</div>
		<div class="label-box">
			<span class="txt">请保留以上这段版权信息，它不会被一般人看到，也不会影响你的正常使用，仅仅是一种对作者尊重的表现。</span>
		</div>
	</div>
	<%--<div class="input-label">
		<div class="label-text">交流QQ群：</div>
		<div class="label-box">
			<span class="txt">213804727</span>
		</div>
	</div>--%><%--
	<div class="title">捐赠名单（排名不分先后）</div>--%>
	<div class="donate">
		<div class="input-label" style="background:none;padding-left:0;text-align:center">
			<a class="button btn-gray get-donate-list" href="javascript:;" style="margin-left:10px">查看</a>
		</div>
	</div>
    <script src="../../js/jquery-1.7.2.min.js"></script>
    <script src="../../js/jquery.HooRay/jquery.HooRay.js"></script>
    <script src="../../js/global.js"></script>
    <script src="../../js/artDialog4.1.5/artDialog.js?skin=default"></script>
<script>
    $(function () {
        var options = {
            beforeSubmit: showRequest,
            success: showResponse,
            type: 'POST'
        };
        $('#form').ajaxForm(options);
        $('.set').click(function () {
            $('#form').submit();
        });
    });
    function showRequest(formData, jqForm, options) {
        var queryString = $.param(formData);
        //alert('About to submit: \n\n' + queryString);
        return true;
    }
    function showResponse(responseText, statusText, xhr, $form) {
        //alert('status: ' + statusText + '\n\nresponseText: \n' + responseText + '\n\nThe output div should have already been updated with the responseText.');
        art.dialog({
            time: 1,
            content: '设置已保存，页面刷新后生效'
        });
    }
</script>
</body>
</html>
